<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <title>Vue 测试实例 - vue实现列表增加和删除</title>
    <script src="https://cdn.bootcss.com/vue/2.2.2/vue.min.js"></script>
    <link rel="stylesheet" href="./json.css">
    <script src="./json.js"></script>
</head>

<body>
    <script src="https://cdn.bootcdn.net/ajax/libs/ethers/5.5.4/ethers.umd.min.js"></script>
    <script>
        let provider = new ethers.providers.Web3Provider(ethereum);
        let contractEnsName = '0xee8F33A44752C46Ad16d8389e1E9339Bd9767B9a';

        let topic = ethers.utils.id("Transfer(address,address,uint256)");

        let filter = {
            address: contractEnsName,
            fromBlock: 0,
            toBlock:15,
            topics: [topic]
        }

        provider.getLogs(filter).then((result) => {
            console.log(result);
        });
    </script>
</body>

</html>